<?php

namespace App\Jobs;

class ExampleJob extends Job
{
    protected $id;
    protected $type;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($id, $type = 'read')
    {
        $this->id = $id;
        $this->type = $type;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        //
        file_put_contents(storage_path('/logs/x1.log'), 'aaa' . $this->type);
    }
}
